<template>
  <div>
    这个是model 父组件 -- {{ num }} --- {{ num2 }}
    <!-- <son :value="num" @input="val => num = val" /> -->

    <!-- v-model 默认给绑定value 和 input事件 -->
    <son
      :aa="num"
      :bb="num2"
      @update:aa="val => num = val"
      @update:bb="val => num2 = val"
    />
    <son :aa.sync="num" :bb.sync="num2" />
  </div>
</template>

<script>
import son from './son.vue'
export default {
  components: { son },
  data() {
    return {
      num: 100,
      num2: 200
    }
  }
}
</script>

<style>

</style>
